<?php
/**
 * 房源补漏模型
 */

namespace app\badmin\model;


use app\common\model\BaseModel;

class HouseTraps extends BaseModel {

    /**
     * 添加
     * @param $params
     */
    public static function add($params) {
        $company_id = $params['company_id'];
        $data = [
            'company_id' => $company_id,
            'source_url' => $params['source_url'],
            'type'       => $params['type'],
            'status'     => 0,
            'itime'      => time(),
        ];
        db("house_traps")->insert($data);

    }

}